package ltd.hxya.novel.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import ltd.hxya.novel.admin.entity.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    int insertUserRole(List<UserRole> userRoles);

    int revokeAll(@Param("roleId") Long roleId, @Param("userIds") Long[] userIds);
}
